﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrgPersTree_Pers_Relation.aspx.cs" Inherits="SysManage_OrgPersTree_Pers_Relation" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>引用人员信息</title>
<base target ="_self" />
<link href ="../css/css.css" rel ="stylesheet" type="text/css" /> 
    <!--#include file="../JS/TDTextBoxControl.js"-->
    <!--#include file="../JS/TrimData.js"-->
  <script language="javascript" type="text/javascript">
   function AddRemoveValues(obj) 
    {
        var sCol = obj.value + "|";
        if(obj.checked)
        {
           form1.ChoiceInfo.value = form1.ChoiceInfo.value + sCol ;
        }
        else
        {
            form1.ChoiceInfo.value = form1.ChoiceInfo.value.replace(sCol,"");
        }
        //alert(form1.ChoiceInfo.value);
   }
   
    //选择组织信息
      var sChoiceID;               //所在赋值的关键字
      var ChoiceNameInfo;          //选择的名称集合
      var ChoiceIDInfo;            //选择的ID集合
      var iChoicePoNumber1 =0;     //0表示任意多,其它的正整数为可以选择的最大个数.不可以为负数
      function GetMyOrgTree(obj)
      {
         var sFeatures = "dialogHeight:600px;dialogWidth:400px;resizeable:no;help:no;status:no";
         var obj = showModalDialog("../SysManage/ChoiceOrgInfo.aspx?ChoiceID="+obj+"&OrgType=2&OrgIDCol=0",window,sFeatures);
         if(obj != undefined)
         {
             sChoiceID = obj.sChoiceID;
             ChoiceNameInfo = obj.ChoiceNameInfo;
             ChoiceIDInfo=obj.ChoiceIDInfo;
             eval("form1.ChoiceName_"+sChoiceID+".value="+ChoiceNameInfo+";");
             eval("form1.HChoiceID_"+sChoiceID+".value="+ChoiceIDInfo+";"); 
         }
      }
 </script>
</head>
<body><!--bgcolor="#D8DADF"-->
    <form id="form1" runat="server">
    <table style ="height :92%; width :100%;">
        <tr style ="height :40px;">
            <td>
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tablelsdi">
                    <tr> 
                      <td width="4%" background="../images/tablelb01.gif"><img src="../images/tablelb01-left.gif" width="21" height="22" alt ="" /></td>
                      <td width="82%" background="../images/tablelb01.gif" class="font12w">人员信息查询</td>
                      <td width="14%" background="../images/tablelb01.gif"> <div align="right"><img src="../images/tablelb01-right.gif" width="21" height="22" alt ="" /></div></td>
                    </tr>
      	           </table>
      	           <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
                    <tr style ="height :30px;" bgcolor="#C3DCF6">                      
                      <td style ="width:10%;"><div align="right">姓名</div></td>
                      <td style ="width:20%;"><asp:TextBox ID="Name" runat="server" Width="100"></asp:TextBox></td>
                      <td style ="width:10%;"><div align="right">性别</div></td>
                      <td style ="width:20%;">
                       <select id="Sex"  runat="server">
                                     <option selected="selected" value="">全部</option>
                                     <option value="1">男</option>
                                     <option value="0">女</option>
                                 </select></td>
                      <td style ="width:10%;"><div align="right">员工号</div></td>
                      <td style ="width:20%;"><asp:TextBox ID="PersCode" runat="server" Width="100"></asp:TextBox></td>
                      <td rowspan ="2"><input id="SearchCheckInInfo" name="Query" type="submit" runat="server"  class="button02" value="查询" onserverclick="SearchCheckInInfo_ServerClick" /></td>
                    </tr>
                    <tr style ="height :30px;" bgcolor="#C3DCF6">
                      <td align="right" >组织名称&nbsp;</td>
                      <td colspan ="3"><asp:TextBox ID="ChoiceName_1" runat ="server" Width="220" onclick ="GetMyOrgTree(1)" TabIndex ="1" ></asp:TextBox>
                          <input type="hidden" id="HChoiceID_1" runat ="server" /></td>
                      <td><div align="right">身份证</div></td>
                      <td><asp:TextBox ID="CardID" runat="server" Width="100"></asp:TextBox></td>                      
                    </tr>
                  </table> 
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                   <tr> 
                      <td valign="top" style ="background-image :Url(../images/cxdimain.gif);"><img src="../images/cxdileft.gif" width="20" height="15" alt="" /></td>
                      <td  style ="background-image :Url(../images/cxdimain.gif);"><div align="right"><img src="../images/cxdiright.gif" width="20" height="15" alt ="" /></div></td>
                    </tr>
                  </table>
                  </td>
                 </tr>
             <tr>
              <td valign ="top">
             <asp:GridView ID="GridView1" runat="server" CellPadding="0" ForeColor="#333333" DataKeyNames="ID"
            Width="99%" AutoGenerateColumns="False"  OnPageIndexChanging="GridView1_PageIndexChanging"  Font-Bold="False" HorizontalAlign="Center" BorderColor="White" OnRowDataBound="GridView1_RowDataBound" EmptyDataText="没有人员信息" PageSize="5" OnSorting="GridView1_Sorting">
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="White" ForeColor="#333333" Height="22px" />            
            <PagerStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Right" Wrap="False" />
            <HeaderStyle BackColor="#4494ED" Font-Bold="True" ForeColor="Black" Height="23px" />
            <AlternatingRowStyle BackColor="AliceBlue" />
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="流水号" >
                   <ItemStyle CssClass="hidden" HorizontalAlign="Center" />
                   <HeaderStyle CssClass="hidden" Width="20%" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="选择">
                  <ItemTemplate>
                    <input type="checkbox" runat="server" id="chkSelect" onclick="AddRemoveValues(this)" value='<%#DataBinder.Eval(Container.DataItem,"ID") %>'/>
                  </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <HeaderStyle Width="5%" />
                 </asp:TemplateField>
                <asp:BoundField DataField="PersCode" HeaderText="员工号" SortExpression ="PersCode" >
                   <ItemStyle HorizontalAlign="Center" />
                   <HeaderStyle Width="8%" />
                </asp:BoundField>
                <asp:BoundField DataField="Name" HeaderText="姓名" SortExpression ="Name"  >
                   <ItemStyle  HorizontalAlign="Center" />
                   <HeaderStyle  Width="20%" />
                </asp:BoundField>
                <asp:BoundField DataField="Sex" HeaderText="性别" SortExpression ="Sex" >
                   <ItemStyle  CssClass="hidden" HorizontalAlign="Center" />
                   <HeaderStyle CssClass="hidden"  Width="10%" />
                </asp:BoundField>
                <asp:BoundField DataField="Birth" HeaderText="出生日期" SortExpression ="Birth"  >
                   <ItemStyle  HorizontalAlign="Center" />
                   <HeaderStyle Width="10%" />
                </asp:BoundField>
                <asp:BoundField DataField="CardID" HeaderText="身份证" SortExpression ="CardID"  >
                   <ItemStyle HorizontalAlign="Center" />
                   <HeaderStyle  Width="15%" />
                </asp:BoundField>
                <asp:BoundField DataField="Phone" HeaderText="电话" SortExpression ="Phone"  >
                   <ItemStyle  HorizontalAlign="Center" />
                   <HeaderStyle Width="8%" />
                </asp:BoundField>
                <asp:BoundField DataField="Mobile" HeaderText="移动电话" SortExpression ="Mobile"  >
                   <ItemStyle  HorizontalAlign="Center" />
                   <HeaderStyle Width="8%" />
                </asp:BoundField>                                 
            </Columns>
           <PagerSettings FirstPageImageUrl="../images/BeginPage.gif" LastPageImageUrl="../images/EndPage.gif"
            NextPageImageUrl="../images/NextPage.gif" PreviousPageImageUrl="../images/PrePage.gif" Mode="NextPreviousFirstLast" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PreviousPageText="上一页" />
                 <EmptyDataRowStyle HorizontalAlign="Center" />
            </asp:GridView>
                </td>
            </tr>
     </table>
     <table cellpadding ="0" style =" width :100%;" cellspacing ="0" border ="0">
   <tr>
    <td align = "center" >
      <input type="button" id="ChoicePersID" value ="确定" class="button02" runat ="server" onserverclick="ChoicePersID_ServerClick"  />
    </td>
   </tr>
 </table>
     <input type="hidden"  id="Hobj" />
     <input type="hidden"  id="HCodeID" runat ="server"  />
     <input type="hidden" id="HTempID" runat ="server" />
     <input type="hidden" id="ChoiceInfo" runat ="server" />
     <asp:Button ID="BtnExport" runat="server"  Text="Button" Width="0px" Height="0px" />
        <asp:Button ID="BtnDel" runat="server" Text="Button" Width="0px" Height="0px" />
        <asp:Button ID="BtnDispDel" runat="server" Text="Button" Width="0px" Height="0px" />
        <asp:Button ID="BtnHideDel" runat="server" Text="Button" Width="0px" Height="0px"/>
        <asp:Button ID="BtnRefresh" runat="server" Text="Button" Width="0px" Height="0px" />
        <asp:Button ID="BtnResume" runat="server" Text="Button" Width="0px" Height="0px"/>   
        <input type="hidden" id="HOrgID" runat ="server" />        
    </form>
</body>
</html>

